package com.trm.login.dao;

import java.util.Map;

import com.common.util.jdbc.BaseDao;

public class LoginDao extends BaseDao {

    /**
     * 登录
     * 
     * @param account
     * @param password
     * @return
     */
    public Map<String, Object> login(String account, String password) {
        String sql = "select * from student where account = '" + account + "' and password = '" + password + "'";
        Map<String, Object> user = this.executeSqlToMap(sql);
        return user;
    }
}
